(self.AMP=self.AMP||[]).push({n:"amp-soundcloud",v:"2102130314001",m:0,f:(function(AMP,_){ 'use strict';var c="function"==typeof Object.create?Object.create:function(b){function a(){}a.prototype=b;return new a};function g(b){for(var a=["object"==typeof globalThis&&globalThis,b,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global],d=0;d %s", A,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0);var v=this.element.getAttribute("data-secret-token"),f=this.element.ownerDocument.createElement("iframe");f.setAttribute("frameborder","no");f.setAttribute("scrolling","no");e="https://w.soundcloud.com/player/?url="+encodeURIComponent(e+n);v&&(e+=encodeURIComponent("?secret_token="+v));"true"===d?e+="&visual=true":a&&(e+="&color="+encodeURIComponent(a));f.src=e;this.applyFillContent(f);f.height=b;this.element.appendChild(f);this.h=f;return this.loadPromise(f)}; w.prototype.pauseCallback=function(){if(this.h&&this.h.contentWindow){var b=this.h.contentWindow,a=JSON;b.postMessage.call(b,a.stringify.call(a,{method:"pause"}),"https://w.soundcloud.com")}};(function(b){b.registerElement("amp-soundcloud",w)})(self.AMP); })}); //# sourceMappingURL=amp-soundcloud-0.1.js.map